#!/usr/bin/env python
# -*- coding: gb2312 -*-


from leazy.utils.nform import *
from models import model, sniper
from utils import app_util as au, checker
from etc import config


db_reader = model.reader
db_writer = model.writer


@au.outer_handler('main.pat', 'error.pat')
def product_url_list(req):
    forms = db_reader.form.select()
    return {'forms': forms}

